package cn.doit.scala.day06.demo

/**
 * @DATE 2021/12/31/10:43
 * @Author MDK
 * @Version 2021.2.2
 * */
object MyReader {
  implicit class ReaderForJavaEE(rd:ReadData){
    def readDataFromMySQL={
      println("mysql...")
    }
    def readDataFromRedis: Unit ={
      println("redis...")
    }
  }
  implicit class ReaderForBigData(rd:ReadData){
    def readerFormHive: Unit ={
      println("Hive...")
    }
    def readDataFromHbase: Unit ={
      println("Hbase...")
    }
  }
}
